.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(45deg, rgba(30, 136, 229, 0.8), rgba(21, 101, 192, 0.9)),
        url('../images/soil-texture-bg.jpg') center/cover;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* 添加动态背景效果 */
.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.login-box {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.login-header i {
    font-size: 3rem;
    color: #1565c0;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 0 0 2px rgba(21, 101, 192, 0) inset;
    transition: all 0.3s ease;
}

.login-form .input-group:focus-within {
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(21, 101, 192, 0.2) inset;
}

.login-form .input-group-text {
    background: white;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

.login-form .form-control {
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #1e88e5;
}

.login-form .btn-primary {
    padding: 0.75rem;
    font-weight: 500;
    background: linear-gradient(45deg, #1e88e5, #1565c0);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.login-form .btn-primary:hover::before {
    left: 100%;
}

.login-form .btn-primary:hover {
    background: linear-gradient(45deg, #1976d2, #1565c0);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

#togglePassword {
    border: 1px solid #e9ecef;
    border-left: none;
    padding: 0.75rem 1rem;
}

#togglePassword:hover {
    background: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .login-box {
        padding: 1.5rem;
    }

    .login-header i {
        font-size: 2.5rem;
    }

    .login-header h2 {
        font-size: 1.25rem;
    }
}

/* 在现有样式后添加 */
.login-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(5px);
}

.login-message.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid rgba(195, 230, 203, 0.5);
}

.login-message.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid rgba(245, 198, 203, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 